Scenario #9321: Newly Created Account for Preexisting Subject and New Person Should Be Able to View That Person

Properties

Required

Given

name value
subjectName xyz-tom.sawyer

Expected

name value
personFamilyName Sawyer
personGivenName Tom

personUuid

HTTP GET "/api/hs/accounts/accounts" \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<xyz-tom.sawyer>"` \
  `# }`
=> status: 200 OK 
[ {
  "uuid" : "242a0004-0000-0000-0000-000000000004", // Account: xyz-tom.sawyer
  "person" : {
    "uuid" : "0e81bae3-da1c-4ec4-b1da-3c1928d1f718", // Person: Tom Sawyer
    "personType" : "NATURAL_PERSON",
    "tradeName" : null,
    "salutation" : "Hallo",
    "title" : null,
    "givenName" : "Tom",
    "familyName" : "Sawyer"
  },
  "subject" : {
    "uuid" : "242a0004-0000-0000-0000-000000000004", // Account: xyz-tom.sawyer
    "name" : "xyz-tom.sawyer",
    "type" : "USER"
  },
  "globalUid" : 21016,
  "globalGid" : 21016
} ]

Fetch the account for the current subject to resolve the related person.

View Own Person

HTTP GET "/api/hs/office/persons/0e81bae3-da1c-4ec4-b1da-3c1928d1f718" // personUuid \
  -H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
  `# {` \
  `#   "sub" : "uuid<xyz-tom.sawyer>"` \
  `# }`
=> status: 200 OK 
{
  "uuid" : "0e81bae3-da1c-4ec4-b1da-3c1928d1f718", // personUuid
  "personType" : "NATURAL_PERSON",
  "tradeName" : null,
  "salutation" : "Hallo",
  "title" : null,
  "givenName" : "Tom",
  "familyName" : "Sawyer"
}

generated on 2026-07-17 01:42:20 for branch